package cn.itsource.order.mapper;

import cn.itsource.order.domain.UserAddress;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

public interface UserAddressMapper extends Mapper<UserAddress> {


   default List<UserAddress> selectByUserId(Long userId){

       Example example = new Example(UserAddress.class);
       example.and().andEqualTo("userId",userId);

       return this.selectByExample(example);
   }
}
